﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="member_info.aspx.cs" Inherits="MxWeiXinPF.Web.admin.toupiao.member_info" ValidateRequest="false" %>


<%@ Import Namespace="MxWeiXinPF.Common" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>编辑投票选项</title>
<%=PageJSAndStype("edit").ToString() %>
    <script type="text/javascript">
          $(function () {
            //初始化表单验证
            $("#form1").initValidform();
              //初始化编辑器
            $(".editor").each(function (i) {
                var objId = $(this).attr("id");
                if (objId != "undefined") {
                    var editor = UE.getEditor(objId, {
                        serverUrl: '../../../tools/upload_ajax.ashx',
                        initialFrameWidth: '100%',
                        initialFrameHeight: 350
                    });
                }
            });
            $(".editor-mini").each(function (i) {
                var objId = $(this).attr("id");
                if (objId != "undefined") {
                    var editorMini = UE.getEditor(objId, {
                        serverUrl: '../../../tools/upload_ajax.ashx',
                        initialFrameWidth: '100%',
                        initialFrameHeight: 250,
                        toolbars: [[
                            'fullscreen', 'source', '|', 'undo', 'redo', '|',
                            'bold', 'italic', 'underline', 'strikethrough', 'removeformat', 'pasteplain', '|', 'forecolor', 'insertorderedlist', 'insertunorderedlist', '|',
                         'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|',
                         'link', 'unlink', 'anchor', '|',
                         'simpleupload', 'insertimage', 'scrawl', 'insertvideo'
                        ]]
                    });
                }
            });

             //初始化上传控件
        $(".upload-img").InitUploader({ filesize: "<%=siteConfig.imgsize %>", sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf", filetypes: "<%=siteConfig.fileextension %>" });
       
        $(".upload-album").InitUploader({ btntext: "批量上传", multiple: true, water: true, thumbnail: true, filesize: "<%=siteConfig.imgsize %>", sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf" });

        //设置封面图片的样式
        $(".photo-list ul li .img-box img").each(function () {
            if ($(this).attr("src") == $("#hidFocusPhoto").val()) {
                $(this).parent().addClass("selected");
            }
        });

        //创建上传附件
        $(".attach-btn").click(function () {
            showAttachDialog();
        });


           

          });

    </script>
</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="action_list.aspx" class="back"><i  class="iconfont icon-up"></i><span>返回投票活动列表</span></a>
             <i class="arrow iconfont icon-arrow-right"></i>
            <span>活动【<asp:Literal ID="litactName" runat="server"></asp:Literal>】</span>
             <i class="arrow iconfont icon-arrow-right"></i>
             <a href="member_list.aspx?actid=<%=actId %>"><span>返回结果列表</span></a>
          <i class="arrow iconfont icon-arrow-right"></i>
            <span>编辑投票信息</span>
        </div>
        <div class="line10"></div>
        <!--/导航栏-->

        <!--内容-->
<div id="floatHead" class="content-tab-wrap">
  <div class="content-tab">
    <div class="content-tab-ul-wrap">
                    <ul>
                        <li><a href="javascript:;" onclick="tabs(this);" class="selected">编辑投票信息</a></li>
                        
                    </ul>
                </div>
            </div>
        </div>

        <div class="tab-content">
            <dl>
                <dt>姓名</dt>
                <dd>
                    <asp:HiddenField ID="hidid" runat="server" Value="0" />
                    <asp:TextBox ID="txtname" runat="server" CssClass="input normal" datatype="*1-50" sucmsg=" " Text="" />
                    <span class="Validform_checktip">*参与投票人的姓名</span>
                </dd>
            </dl>

            <dl>
                <dt>电话</dt>
                <dd>
                  
                    <asp:TextBox ID="txttel" runat="server" CssClass="input normal" datatype="*1-50" sucmsg=" " Text="" />
                    <span class="Validform_checktip">*电话</span>
                </dd>
            </dl>  

             <dl>
                <dt>编码</dt>
                <dd>
                  
                    <asp:Label ID="lblbianma" runat="server" Text="自动生成"></asp:Label>
                </dd>
            </dl>  

             <dl>
                <dt>票数</dt>
                <dd>
                  <asp:Label ID="lblbpiao" runat="server" Text="0"></asp:Label>
                    
                </dd>
            </dl>  

              <dl>
                <dt>审核</dt>
                <dd>
                  
                    <div class="rule-multi-radio">
                        <asp:RadioButtonList ID="rblStatus" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="1" Selected="True">通过</asp:ListItem>
                            <asp:ListItem Value="2">不通过</asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                    <span class="Validform_checktip">*审核状态</span>
                </dd>
            </dl>  

            <dl>
                <dt>图片</dt>
                <dd>
                    <asp:Image ID="imgimgurl" runat="server"    Style="max-height: 80px;" />
                    <asp:TextBox ID="txtimgurl" runat="server" CssClass="input normal upload-path" datatype="*1-500" sucmsg=" " nullmsg=" " />
                    <div class="upload-box upload-img"></div>
                    <span class="Validform_checktip">（尺寸：宽400像素，高400像素） 小于200k;</span>
                </dd>
            </dl>

            <dl>
                <dt>说明</dt>
                <dd>
                    <textarea name="txtremark" id="txtremark" class="editor-mini"    runat="server" ></textarea>
                    <span class="Validform_checktip"></span>
                </dd>
            </dl>
             <dl>
                <dt>排序数字</dt>
                <dd>
                    <asp:TextBox ID="txtSortId" runat="server" CssClass="input small" datatype="n" sucmsg=" ">99</asp:TextBox>
                    <span class="Validform_checktip">*数字，越小越向前</span>
                </dd>
            </dl>

        </div>
        
        <!--/内容-->

        <!--工具栏-->
        <div class="page-footer">
            <div class="btn-list">
                <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn" OnClick="btnSubmit_Click" />
                <a href="dzplist.aspx"><span class="btn yellow">返回上一页</span></a>

            </div>
            <div class="clear"></div>
        </div>
        <!--/工具栏-->
    </form>
</body>
</html>
